import request from '@/sheep/request';

export default {
	//员工考勤设置
	detail: (params) =>
		request({
			url: 'api/attendance_record/config',
			method: 'GET',
			params,
			custom: {
				showLoading: false,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	site: (params) =>
		request({
			url: 'api/attendance_record/clockin',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	attendancw: (params) =>
		request({
			url: 'api/attendance_record/get_today_attendancw',
			method: 'GET',
			params,
			custom: {
				showLoading: false,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//公章申请
	cachet: (params) =>
		request({
			url: 'api/common_seal_apply/add',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//公章申请列表
	cachet_list: (params) =>
		request({
			url: 'api/common_seal_apply/index',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//日周月报
	dailyRecord: (params) =>
		request({
			url: 'api/daily_record/add',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//请假
	leave: (params) =>
		request({
			url: 'api/ask_leave/add',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//报销申请
	approval: (params) =>
		request({
			url: 'api/reimburse/index',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//报销详情
	reimburse_view: (params) =>
		request({
			url: 'api/reimburse/view',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//报销详情
	leave_list: (params) =>
		request({
			url: 'api/ask_leave/index',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	leave_list_about: (params) =>
		request({
			url: 'api/ask_leave/view',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//拜访记录
	visit_record: (params) =>
		request({
			url: 'api/visit_record/add',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	visit_record_edit: (params) =>
		request({
			url: 'api/visit_record/edit',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	visit_record_list: (params) =>
		request({
			url: 'api/visit_record/index',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	attachment_index: (params) =>
		request({
			url: 'api/contract/index',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	attachment_Index: (params) =>
		request({
			url: 'api/contract_category/index',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	project: (params) =>
		request({
			url: 'api/project/index',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	attachment_view: (params) =>
		request({
			url: 'api/contract/view',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	my_leave_list: (params) =>
		request({
			url: 'api/daily_record/get_staff_all',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	timeList_detail_detail: (params) =>
		request({
			url: 'api/daily_record/get_detail_by_uid_type',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	approve_list: (params) =>
		request({
			url: 'api/ask_leave/approve_list',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	approve_list_pass: (params) =>
		request({
			url: 'api/ask_leave/pass',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),

	approve_list_refuse: (params) =>
		request({
			url: 'api/ask_leave/refuse',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//采购申请审核列表
	purchase_approve_list: (params) =>
		request({
			url: 'api/purchase/approve_list',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//采购审批通过
	purchase_pass: (params) =>
		request({
			url: 'api/purchase/pass',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//采购审批拒绝
	purchase_refuse: (params) =>
		request({
			url: 'api/purchase/refuse',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//借支审核列表
	borrowing_approve_list: (params) =>
		request({
			url: 'api/borrowing/approve_list',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,

			},
		}),
	//借支审核通过
	borrowing_pass: (params) =>
		request({
			url: 'api/borrowing/pass',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//借支审批拒绝
	borrowing_refuse: (params) =>
		request({
			url: 'api/borrowing/refuse',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//借支审核列表
	recruitment_approve_list: (params) =>
		request({
			url: 'api/recruitment/approve_list',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//借支审核通过
	recruitment_pass: (params) =>
		request({
			url: 'api/recruitment/pass',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//借支审批拒绝
	recruitment_refuse: (params) =>
		request({
			url: 'api/recruitment/refuse',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//报名审核列表
	recruitment_apply_approve_list: (params) =>
		request({
			url: 'api/recruitment_apply/approve_list',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//报名审核通过
	recruitment_apply_pass: (params) =>
		request({
			url: 'api/recruitment_apply/pass',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//报名审批拒绝
	recruitment_apply_refuse: (params) =>
		request({
			url: 'api/recruitment_apply/refuse',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//报销审核列表
	reimburse: (params) =>
		request({
			url: 'api/reimburse/approve_list',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//报销审核通过
	reimburse_pass: (params) =>
		request({
			url: 'api/reimburse/pass',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//报销审批拒绝
	reimburse_refuse: (params) =>
		request({
			url: 'api/reimburse/refuse',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//出差审核列表
	evection: (params) =>
		request({
			url: 'api/evection/approve_list',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//出差审核通过
	evection_pass: (params) =>
		request({
			url: 'api/evection/pass',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//出差审批拒绝
	evection_refuse: (params) =>
		request({
			url: 'api/evection/refuse',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//公章审核列表
	common_seal_apply: (params) =>
		request({
			url: 'api/common_seal_apply/approve_list',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//公章审核通过
	common_seal_apply_pass: (params) =>
		request({
			url: 'api/common_seal_apply/pass',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//公章审批拒绝
	common_seal_apply_refuse: (params) =>
		request({
			url: 'api/common_seal_apply/refuse',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	getred: (params) =>
		request({
			url: 'api/common/visible_mark',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//备忘录list
	memorandum: (params) =>
		request({
			url: 'api/memorandum/index',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//备忘录新增
	memorandum_add: (params) =>
		request({
			url: 'api/memorandum/add',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//备忘录修改
	memorandum_edit: (params) =>
		request({
			url: 'api/memorandum/edit',
			method: 'POST',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//备忘录del
	memorandum_del: (params) =>
		request({
			url: 'api/memorandum/del',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//客户管理
	cutomer: (params) =>
		request({
			url: 'api/customer/index',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
			},
		}),

	cutomer_view: (params) =>
		request({
			url: 'api/customer/view',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: false,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	cutomer_del: (params) =>
		request({
			url: 'api/customer/del',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	//操作台图标
	wxmenu: (params) =>
		request({
			url: 'api/common/wxmenu',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',

			},
		}),
	policyreport_approve_list: (params) =>
		request({
			url: '/api/policyreport/approve_list',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				loadingMsg: '加载中',

			},
		}),
};